]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Set initial visibility of settings items
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Sep 2012 13:58:08 +0000 (15:58 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Sep 2012 18:04:05 +0000 (20:04 +0200)
With the recent session mode changes, the visibility of settings
items is now only set on sessionMode::updated - while the signal
is emitted when the session mode is initialized, settings items
that are added after that are visible regardless of the allowSettings
setting until the next sessionMode::updated signal is received.
Fix this by explicitly setting the initial visibility of settings
items.

https://bugzilla.gnome.org/show_bug.cgi?id=684473

js/ui/popupMenu.js

index c4b6c4ea6a0465f5c068df1991f783f50e27d7ed..23368a5b6dc80fb8f5161a02b8c42e02326464e8 100644 (file)
@@ -904,6 +904,7 @@ const PopupMenuBase = new Lang.Class({
                            app.activate();
                        });
 
+        menuItem.actor.visible = Main.sessionMode.allowSettings;
         this._settingsActions[desktopFile] = menuItem;
 
         return menuItem;